package Bean;

import com.alibaba.fastjson.JSONObject;

public class BeanStudent {
    int student_id;
    String user_id;
    String student_name;
    int student_age;

    public int getStudent_id() {
        return student_id;
    }

    public void setStudent_id(int student_id) {
        this.student_id = student_id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getStudent_name() {
        return student_name;
    }

    public void setStudent_name(String student_name) {
        this.student_name = student_name;
    }

    public int getStudent_age() {
        return student_age;
    }

    public void setStudent_age(int student_age) {
        this.student_age = student_age;
    }
    public JSONObject toJson() {
        JSONObject j=new JSONObject();
        j.put("student_id", student_id);
        j.put("student_name", student_name);
        j.put("student_age", student_age);
        return j;
    }
}
